export const namespace = "systemRules";

export const calcColumns = (params) => {
  const { operate } = params;
  const columns = [
    {
      title: "ID",
      hidden: process.env.UMI_ENV == "prod" ? true : false,
      width: 180,
      dataIndex: "id",
      hideInSearch: true,
    },
    {
      title: "登录账号",
      dataIndex: "name",
    },
    {
      title: "登录IP",
      dataIndex: "ip",
      hideInSearch: true,
    },
    {
      title: "操作时间",
      dataIndex: "date",
    },

    {
      title: "访问菜单",
      dataIndex: "title",
      hideInSearch: true,
    },
    {
      title: "操作内容",
      dataIndex: "date",
    },
  ];

  return columns;
};
